package cn.edu.tju.core.security.rest.dto;

import jakarta.validation.constraints.NotNull;

/**
 * DTO for avatar upload.
 */
public class AvatarDto {

   @NotNull
   private String base64;

   public String getBase64() {
      return base64;
   }

   public void setBase64(String base64) {
      this.base64 = base64;
   }

   @Override
   public String toString() {
      return "AvatarDto{" +
         "base64='" + (base64 != null ? "[BASE64_DATA]" : "null") + '\'' +
         '}';
   }
}
